const busi = {
  busiCode: { type: 'string', description: '业务状态' },
  msg: { type: 'string', description: '业务描述' }
}
module.exports = {
  response: {
    multipleChildren: {
      values: ['normalRes', 'pageRes', 'loginRes', 'refreshRes', 'myInfoRes', 'addPostRes', 'resumeDetailRes', 'fileRes', 'homePostReq', 'homeDeliverReq'],
      key: 'data'
    },
    code: { type: 'string', description: '通讯状态' },
    msg: { type: 'string', description: '描述信息' }
  },
  normalRes: {
    ...busi
  },
  fileRes: {
    ...busi,
    fileInfo: { type: 'fileInfo', description: '描述信息' }
  },
  fileInfo: {
    fileName: { type: 'string', description: '文件名' },
    fileType: { type: 'string', description: '文件类型' },
    filePath: { type: 'string', description: '文件路径' },
    fileSize: { type: 'number', description: '文件大小' }
  },
  pageRes: {
    multipleChildren: {
      type: 'array',
      values: ['postRes', 'resumeRes', 'resumeReq', 'addDeliverRes', 'deliverReq', 'flowRes'],
      key: 'records'
    },
    ...busi,
    startIndex: { type: 'number', description: '开始索引值' },
    totalCount: { type: 'number', description: '总条数' },
    totalPage: { type: 'number', description: '总页数' },
    volumePage: { type: 'number', description: '每页条数' }
  }
}
